home *** CD-ROM | disk | FTP | other *** search
- abstract class ItemAction extends StgObjectAction {
- public ItemAction(StgFrame var1) {
- super(var1);
- }
-
- public void action(ItemIndex var1) {
- Item var2 = super.resource.getItem();
- if (((StgObjectIndex)var1).cliping()) {
- ((StgObject)var2).delete(var1);
- }
-
- }
-
- public void hitPlayer(ItemIndex var1, PlayerShipIndex var2) {
- Item var3 = super.resource.getItem();
- ((StgObject)var3).delete(var1);
- }
-
- protected boolean putGetPowerItem(ItemIndex var1) {
- Enemy var2 = super.resource.getEnemy();
- Position var3 = ((StgObjectIndex)var1).getPosition();
- ((StgObjectIndex)var1).getPosition();
- Position var6 = new Position(var3.getX(), var3.getY(), 0);
- SpriteAnimeData var5 = StgData.getSpriteAnimeGetPowerItem();
- EnemyIndex var4 = new EnemyIndex(var6, var5, new Position(262144, 262144, 0), 0, new GetPowerItem(super.resource), 0, 65536, 100, 0);
- return ((StgObject)var2).add(var4);
- }
-
- protected boolean putGetRedItem(ItemIndex var1) {
- Enemy var2 = super.resource.getEnemy();
- Position var3 = ((StgObjectIndex)var1).getPosition();
- ((StgObjectIndex)var1).getPosition();
- Position var6 = new Position(var3.getX(), var3.getY(), 0);
- SpriteAnimeData var5 = StgData.getSpriteAnimeGetRedItem();
- EnemyIndex var4 = new EnemyIndex(var6, var5, new Position(262144, 262144, 0), 0, new GetRedItem(super.resource), 0, 65536, 100, 0);
- return ((StgObject)var2).add(var4);
- }
-
- protected boolean putGetBlueItem(ItemIndex var1) {
- Enemy var2 = super.resource.getEnemy();
- Position var3 = ((StgObjectIndex)var1).getPosition();
- ((StgObjectIndex)var1).getPosition();
- Position var6 = new Position(var3.getX(), var3.getY(), 0);
- SpriteAnimeData var5 = StgData.getSpriteAnimeGetBlueItem();
- EnemyIndex var4 = new EnemyIndex(var6, var5, new Position(262144, 262144, 0), 0, new GetBlueItem(super.resource), 0, 65536, 100, 0);
- return ((StgObject)var2).add(var4);
- }
- }
-